<!--定义分页请求地址，传递给backConstant.ftl-->
<#assign urllist="${rc.contextPath}/electronicInvoiceKp/electronicInvoiceAdminJsonList" />
<!--定义详情请求地址，传递给backConstant.ftl-->
<#assign urldetail="${rc.contextPath}/electronicInvoiceKp/electronicInvoiceAdminJsonDetail" />
<!--定义添加表单初始值请求地址，传递给backConstant.ftl-->
<#assign urladdforminit="${rc.contextPath}/electronicInvoiceKp/electronicInvoiceAdminJsonAddFormInit" />
<!--定义保存实体变量地址，传递给backConstant.ftl-->
<#assign urlsave="${rc.contextPath}/electronicInvoiceKp/electronicInvoiceAdminJsonSave" />
<!--定义修改实体变量地址，传递给backConstant.ftl-->
<#assign urlupdate="${rc.contextPath}/electronicInvoiceKp/electronicInvoiceAdminJsonUpdate" />
<!--定义删除实体变量地址，传递给backConstant.ftl-->
<#assign urldelete="${rc.contextPath}/electronicInvoiceKp/electronicInvoiceAdminJsonDelete" />
<!--include常量-->
<#include "/misc/backConstant.ftl">

<script type="text/javascript">
		//设置分页表格的属性
		var paginationColumns = 
			[
			 {field:"record.id",title:"<@i18n.message "invoice.message.field.recordid"/>",width:50},
			 {field:"eiSetting.group.fullName",title:"<@i18n.message "invoice.message.field.xfdwmc"/>",width:50},
			 {field:"fphm",title:"<@i18n.message "invoice.message.field.fphm"/>",width:40},
			 {field:"fpdm",title:"<@i18n.message "invoice.message.field.fpdm"/>",width:50},
			 {field:"gfInfo.ghdwmc",title:"<@i18n.message "invoice.message.field.ghdwmc"/>",width:50},
			 {field:"record.money",title:"<@i18n.message "invoice.message.field.hjje"/>",width:30},
			 {field:"invoiceType.name",title:"<@i18n.message "invoice.message.field.invoiceType"/>",width:50},
			 {field:"status.name",title:"<@i18n.message "invoice.message.field.kplx"/>",width:30},
			 {field:"eiSetting.nsrsbh",title:"<@i18n.message "invoice.message.field.xhdwsbh"/>",width:50},
			 {field:"gfInfo.ghdwsbh",title:"<@i18n.message "invoice.message.field.ghdwsbh"/>",width:50},
			 {field:"pdfUrl",title:"<@i18n.message "invoice.message.field.pdfUrl"/>",width:80},
			 {field:"gfInfo.ghdwdh",title:"<@i18n.message "invoice.message.field.gfkhdh"/>",width:50},
			 {field:"gfInfo.gfkhyx",title:"<@i18n.message "invoice.message.field.gfkhyx"/>",width:50},
			 {field:"kprq",title:"<@i18n.message "invoice.message.field.kprq"/>",width:40}
			];
		
		//可以在这里扩充详情的显示
		function detailSet${currentActionName}(result){
		}
		//查询
		
</script>
<script type="text/javascript" src="${rc.contextPath}/static/js/crud.js"></script>

<div style="padding:5px;">
	<table id="dg${currentActionName}"></table>
	<div id="toolbar${currentActionName}"  style="padding:5px;height:auto">
		<div style="margin-bottom:5px">
			<a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="openDetail('detail','${currentActionName}','${urldetail}')"><@i18n.message "button.detail"/></a>
		</div>
		<div>
			<input id="ghdwsbhSearchKey${currentActionName}" class="easyui-textbox" data-options="prompt:'<@i18n.message "electrongf.message.field.ghdwsbh"/>'"> &nbsp;&nbsp;
			<a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="doSearch${currentActionName}()"><@i18n.message "button.search"/></a>
		</div>
	</div>
	<div id="dlg${currentActionName}" class="easyui-dialog" closed="true" resizable="true" minimizable="true" collapsible="true" maximizable="true" style="width:35%;height:70%;padding:10px 20px"
			 buttons="#dlg-buttons${currentActionName}">
		<div class="ftitle"><@i18n.message "invoice.message.info"/></div>
			<@spring.form id="fm${currentActionName}" modelAttribute="vm" method="post">
				<div class="fitem">
					<label><@i18n.message "electrongf.message.field.ghdwsbh"/>:</label>
					<input name="spmc" id="spmcFormKey${currentActionName}" class="easyui-textbox" data-options="required:true" missingMessage='<@i18n.message "electrongf.message.field.ghdwsbh"/>'>
				</div>
				<div class="fitem">
					<label><@i18n.message "electrongf.message.field.ghdwyhmc"/>:</label>
					<input name="sl" id="spmcFormKey${currentActionName}" class="easyui-textbox" data-options="required:true" missingMessage='<@i18n.message "electrongf.message.field.ghdwyhmc"/>'>
				</div>
					<input type="hidden" name="${CoreConstants.TOKEN_KEY}" id="${CoreConstants.TOKEN_KEY}${currentActionName}">
			</@spring.form>
		</div>

	</div>
	<div id="dlg-buttons${currentActionName}">
		<a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="save('dlg','fm','${currentActionName}','${urlsave}','${urlupdate}')"><@i18n.message "button.save"/></a>
		<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="cancelForm('dlg','fm','${currentActionName}')"><@i18n.message "button.cancel"/></a>
	</div>
	<div id="detail${currentActionName}" class="easyui-dialog" closed="true" resizable="true" minimizable="true" collapsible="true" maximizable="true" style="width:35%;height:70%;padding:10px 20px" buttons="#detail-buttons${currentActionName}">
		<div class="ftitle"><@i18n.message "invoice.message.info"/></div>
		<table class="window_table">
			<tr>
				<td><@i18n.message "electrongf.message.field.ghdwsbh"/>:</td>
				<td><label id="gfInfo_ghdwsbh${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "electrongf.message.field.ghdwmc"/>:</td>
				<td><label id="gfInfo_ghdwmc${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "electrongf.message.field.ghdwdz"/>:</td>
				<td><label id="gfInfo_ghdwdz${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "electrongf.message.field.ghdwdh"/>:</td>
				<td><label id="gfInfo_ghdwdh${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "electrongf.message.field.ghdwyhmc"/>:</td>
				<td><label id="gfInfo_ghdwyhmc${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "electrongf.message.field.ghdwyh"/>:</td>
				<td><label id="gfInfo_ghdwyh${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "electrongf.message.field.gfkhyx"/>:</td>
				<td><label id="gfInfo_gfkhyx${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "invoice.message.field.pdfUrl"/>:</td>
				<td><label id="pdfUrl${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "invoice.message.field.kplx"/>:</td>
				<td><label id="status_name${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "invoice.message.field.invoiceType"/>:</td>
				<td><label id="invoiceType_name${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "electrongf.message.field.plateNumber"/>:</td>
				<td><label id="gfInfo_plateNumber_plateNumber${currentActionName}"></label></td>
			</tr>
			<tr>
				<td><@i18n.message "picturegallery.message.field.createdate"/>:</td>
				<td><label id="createdate${currentActionName}"></label></td>
			</tr>
		</table>
	</div>
	
	
	<div id="detail-buttons${currentActionName}">
		<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="cancelForm('detail',null,'${currentActionName}')"><@i18n.message "button.closed"/></a>
	</div>
</div>